﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x02000375 RID: 885
	public class TWhereClause : TParseTreeNode
	{
		// Token: 0x060024F7 RID: 9463 RVA: 0x003395CD File Offset: 0x003377CD
		public void setCurerntOf(bool co)
		{
			this.curerntOf = co;
		}

		// Token: 0x170007F9 RID: 2041
		// (get) Token: 0x060024F9 RID: 9465 RVA: 0x003395DF File Offset: 0x003377DF
		// (set) Token: 0x060024F8 RID: 9464 RVA: 0x003395D6 File Offset: 0x003377D6
		public virtual bool CurerntOf
		{
			get
			{
				return this.curerntOf;
			}
			set
			{
				this.curerntOf = value;
			}
		}

		// Token: 0x060024FA RID: 9466 RVA: 0x003395E7 File Offset: 0x003377E7
		public virtual void TWhereClause_Renamed()
		{
		}

		// Token: 0x170007FA RID: 2042
		// (get) Token: 0x060024FB RID: 9467 RVA: 0x003395E9 File Offset: 0x003377E9
		// (set) Token: 0x060024FC RID: 9468 RVA: 0x003395F1 File Offset: 0x003377F1
		public virtual TExpression Condition
		{
			get
			{
				return this.condition;
			}
			set
			{
				this.condition = value;
			}
		}

		// Token: 0x060024FD RID: 9469 RVA: 0x003395FA File Offset: 0x003377FA
		public override void init(object arg1)
		{
			this.condition = (TExpression)arg1;
		}

		// Token: 0x060024FE RID: 9470 RVA: 0x00339608 File Offset: 0x00337808
		public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)
		{
			if (!this.CurerntOf)
			{
				this.condition.doParse(psql, plocation);
			}
		}

		// Token: 0x060024FF RID: 9471 RVA: 0x0033961F File Offset: 0x0033781F
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06002500 RID: 9472 RVA: 0x0033962F File Offset: 0x0033782F
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001CA5 RID: 7333
		private bool curerntOf;

		// Token: 0x04001CA6 RID: 7334
		private TExpression condition;
	}
}
